#!/usr/bin/make -f
export NO_PKG_MANGLE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	# upstream tarball is without configure. autogen.sh will create it
	NOCONFIGURE=1 ./autogen.sh
	dh_auto_configure -- \
		--disable-silent-rules \
		--disable-scrollkeeper \
		--localstatedir=/var \
		--disable-static \
		--disable-update-mimedb \
		--with-gtk=3.0

override_dh_strip:
	dh_strip -pukui-control-center

override_dh_makeshlibs:

override_dh_install:
	rm -f debian/ukui-control-center/usr/lib/*/*/*/*.la
	dh_install

override_dh_missing:
	dh_missing --fail-missing
